//
//  NewsModel.h
//  ProjectsOne
//
//  Created by iOS开发 on 2018/7/9.
//  Copyright © 2018年 iOS开发. All rights reserved.
//

#import <Foundation/Foundation.h>

#define kCellSize 80 * WIDTH / 375

@interface commentModel : NSObject

@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *time;
@property (nonatomic, copy) NSString *comment;// 评论
@property (nonatomic, copy) NSAttributedString *attrComment;// 编辑后的评论
@property (nonatomic, assign) NSInteger pictureNumber;// 图片数量
@property (nonatomic, assign) NSInteger starNumber;// 星星数量
@property (nonatomic, assign) CGFloat commentCellHeight;// cell高度

@end

@interface NewsModel : NSObject

@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *time;
@property (nonatomic, copy) NSString *source;

@property (nonatomic, copy) NSString *content;// 正文
@property (nonatomic, copy) NSAttributedString *attrContent;// 编辑后的正文
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *isCollect;// 是否收藏 1收藏 0未收藏 默认0
@property (nonatomic, assign) NSInteger pictureNumber;// 图片数量
@property (nonatomic, assign) CGFloat cellHeight;// cell高度

@property (nonatomic, strong) NSMutableArray <commentModel *>*commentArr;// 评论数组
@property (nonatomic, assign) BOOL isHaveMoreComment;// 判断显示几条评论 最多显示三条评论

@end
